<?php

// viennp: view nay hien thi trong view chi tiet issue
$this->breadcrumbs=array(
		'Issues'=>array('index'),
		$model->name,
);

/* viennp change
 * $this->menu=array(
 		array('label'=>'List Issue', 'url'=>array('index')),
 		array('label'=>'Create Issue', 'url'=>array('create')),
 		array('label'=>'Update Issue', 'url'=>array('update', 'id'=>$model->id)),
 		array('label'=>'Delete Issue', 'url'=>'#', 'linkOptions'=>array('submit'=>array('delete','id'=>$model->id),'confirm'=>'Are you sure you want to delete this item?')),
 		array('label'=>'Manage Issue', 'url'=>array('admin')),
 ); */
$this->menu=array(
		array('label'=>'List Issue', 'url'=>array('index', 'pid'=>$model->project->id)),
		array('label'=>'Create Issue', 'url'=>array('create','pid'=>$model->project->id)),
		array('label'=>'Update Issue', 'url'=>array('update', 'id'=>$model->id)),
		array('label'=>'Delete Issue', 'url'=>'#', 'linkOptions'=>array('submit'=>array('delete','id'=>$model->id),'confirm'=>'Are you sure you want to delete this item?')),
		array('label'=>'Manage Issue', 'url'=>array('admin', 'pid'=>$model->project->id)),
);

?>

<h1>
	View Issue #
	<?php echo $model->id; ?>
</h1>


<?php 

// bo vo trong nay cai j thi hien thi detail do trong view issue


$this->widget('zii.widgets.CDetailView', array(
		'data'=>$model,
		'attributes'=>array(
				'id',
				'name',
				'description',
				array(
						'name'=>'type_id',
						'value'=>CHtml::encode($model->getTypeText())
				),
				array(
						'name'=>'status_id',
						'value'=>CHtml::encode($model->getStatusText())
				),
				array( 'name'=>'owner_id',
						'value'=>CHtml::encode($model->owner->username)
				), // insert into detail
				array(
						'name'=>'requester_id',
						'value'=>CHtml::encode($model->requester->username)
				),
					
		),
)); ?>
